﻿using NailsFramework.Persistence;

namespace CID.Domain.Users
{
    public class UserRoleAssignment : Model<UserRoleAssignment>, CID.Domain.Users.IUserRoleAssignment
    {
        public virtual int Id { get; private set; }
        public virtual IUser User { get; private set; }
        public virtual UserRole UserRole { get; private set; }
        protected UserRoleAssignment()
        {
        }

        internal UserRoleAssignment(IUser user, UserRole userRole) : this()
        {
            User = user;
            UserRole = userRole;
        }
    }
}
